<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="js/css/bootstrap.min.css">
    <script src="js/js/bootstrap.min.js" type="text/javascript"></script>
    <script src="js/jquery-3.6.0.min.js" type="text/javascript"></script>
    <style>
        *{
            padding: 0px;
            margin: 0px;
        }
        html,body{
            width: 100%;
            height: 100%;
        }
        .container-fluid{
            height: 100%;
            padding: 0px;
        }
        .head{
            height: 110px;
            background-color:aqua;
            color: white;
            font-size: 20px;
            padding: 0px 15px;
        }
        #left{
            width: 200px;
            height: calc(100% - 110px);
            margin-left: 0px;
            float: right;
        }
        #right{
            height:calc(100% - 110px);
            width: calc(100% - 200px);
            float: left;
            margin-right: -45px;
        }
        iframe{
            width: 100%;
            height: 100%;
            border: null;
        }
    </style>
    <script>
        $(function () {
            $('#admin').html(sessionStorage.getItem("nickName"));

            $('#logout').click(function () {

                $.ajax({
                    url:'logout',
                    type:'post',
                    cache:false,
                    data:{},
                    dataType:'json',
                    success:function (rst) {
                    },
                    error:function (err) {
                        console.info(err);
                    }
                });
                //清理服务器端
                //清理浏览器
                sessionStorage.clear();
                location.href="login.html";
            });
        });
    </script>
    </head>
<body>
    <div class="container-fluid">
        <div class="row head">
            <div class="col-sm-3">
                <a href="welcome.html" target="cards">
                    <img src="img/logo.png" class="img-responsive">
                </a>
            </div>
            <div class="col-sm-4 col-sm-offset-2 text-right">
                <br><br><br>
                <span id="now">现在是：2022年3月21日 21:35:14</span>
            </div>
            <div class="col-sm-3 text-right">
                <span id="admin">蔡伟</span>
                <img src="img/svgA9083986517742639.png">
                <input type="button" id="logout" class="btn btn-danger" value="退出">
            </div>
        </div>
        <div id="left">
            <iframe src="menu/menu.html" frameborder="0"></iframe>
        </div>
        <div id="right">
            <iframe src="welcome.html" frameborder="0" name="cards"></iframe>
        </div>
        </div>
    </div>
</body>
</html>